package com.ruoyi.ledger.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * @author: zyh
 * @date: 2025/3/3 11:29
 **/
public class LedgerConfig extends BaseEntity {


    private static final long serialVersionUID = 1L;

    /** 配置数据主键 */
    private String ledgerConfigId;

    private String userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    /** 账本配置类型 */
    @Excel(name = "账本配置类型")
    private String configType;

    /** 账本配置名称 */
    @Excel(name = "账本配置名称")
    private String configName;

    /** 是否删除 0:否 1:是 */
    @Excel(name = "是否删除 0:否 1:是")
    private Integer isDelete;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public void setLedgerConfigId(String ledgerConfigId)
    {
        this.ledgerConfigId = ledgerConfigId;
    }

    public String getLedgerConfigId()
    {
        return ledgerConfigId;
    }
    public void setConfigType(String configType)
    {
        this.configType = configType;
    }

    public String getConfigType()
    {
        return configType;
    }
    public void setConfigName(String configName)
    {
        this.configName = configName;
    }

    public String getConfigName()
    {
        return configName;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("ledgerConfigId", getLedgerConfigId())
                .append("configType", getConfigType())
                .append("configName", getConfigName())
                .append("remark", getRemark())
                .append("isDelete", getIsDelete())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }

}
